package com.navinfo.platform.sparksql.support;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * RS每行数据的结果映射接口
 * @param <T>
 */
public interface ResultSetRowMapper<T> {
	/**
	 * 将rs对象的每行映射成结果对象T
	 * @param rs
	 * @param rowNum
	 * @return
	 * @throws SQLException
	 */
	T mapRow(ResultSet rs, int rowNum) throws SQLException;
}
